file = open("text.txt")
permission_group = list()
while True:
    text = file.readline()  # 只读取一行内容

    # 判断是否读取到内容
    if not text:
        break
    else:
        permission_group.append(int(text))
print(permission_group)
file.close()
